package com.recommend.service.admin.impl;

import com.recommend.domain.MovieDomain;
import com.recommend.persistence.ScoreDomainMapper;
import com.recommend.service.ScoreService;
import org.slf4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by lw.
 */
@Service
@Transactional
public class ScoreServiceImpl implements ScoreService{
    private final static Logger logger = org.slf4j.LoggerFactory.getLogger(ScoreServiceImpl.class);

    @Autowired
    private ScoreDomainMapper scoreDomainMapper;

    @Override
    public List<MovieDomain> getTopMovie(){
        logger.info("===get top movie");
        return scoreDomainMapper.selectTopMovie();
    }
}
